package com.kvn.dubbo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by wangzhiyuan on 2019/1/29
 */
@SpringBootApplication
@ImportResource("classpath:beans/dubbo.xml")
public class DemoConsumerApp {
    public static void main(String[] args) {
        SpringApplication.run(DemoConsumerApp.class, args);
//        new SpringApplicationBuilder(DemoConsumerApp.class)
//                .web(WebApplicationType.SERVLET)
//                .run(args);
    }
}
